package cn.songit.service;

import cn.songit.entity.Demo;
import cn.songit.repository.DemoRepositoryJdbcTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("demoService2")
public class DemoServiceJdbcTemplate {
    @Autowired
    private DemoRepositoryJdbcTemplate demoRepositoryJdbcTemplate;

    public Demo getById(Integer id){
        return demoRepositoryJdbcTemplate.getById(id);
    }
}
